package com.huang.springcloud.service;

import com.huang.springcloud.mapper.DeptMapper;
import com.huang.springcloud.pojo.Dept;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DeptServiceImpl implements DeptService{

    @Autowired
    DeptMapper deptMapper;

    @Override
    public int addDept(Dept dept) {
        return deptMapper.addDept(dept);
    }

    @Override
    public Dept getById(int id) {
        return deptMapper.getById(id);
    }

    @Override
    public List<Dept> getList() {
        return deptMapper.getList();
    }
}
